package com.zhuangwei.sell.service;

import com.zhuangwei.sell.dto.OrderDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author LeviCoder
 * @create 2019-03-01 0:21
 */
public interface OrderService {

    /*创建订单*/
    OrderDto create(OrderDto orderDto);

    /*查询单个订单*/
    OrderDto findOne(String orderId);

    /*查询订单列表*/
    Page<OrderDto> findList(String buyeropenid, Pageable pageable);

    /*取消订单*/
    OrderDto cancle(OrderDto orderDto);

    /*完结订单*/
    OrderDto finish(OrderDto orderDto);

    /*支付订单*/
    OrderDto paid(OrderDto orderDto);


}
